﻿@import "apptheme.less";

@font-face {
    font-family: "Symbols";
    src: url(../fonts/Symbols.ttf);
}

.phone .mcn-cordova {
    progress.bar {
        background-color: white;
    }
}

.phone .mcn-globalprogress-ctrl.top-wide .mcn-globalprogress-text {
    background-color: white;
}


.mcn-splashcreen {
    z-index: 5000;
    background-color: @baseColor;
    /*background-image: url(../images/turquoise-glow.jpg);
        background-size: cover;*/
    #mcn-splashcreen-image {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 214px;
        height: 214px;
        margin-top: -187px;
        margin-left: -107px;
    }
}

.phone .symbol {
    font-family: "Symbols";
}

.phone #contenthost .win-backbutton {
    display: none;
}

.phone .fragment section[role="main"] {
    position: absolute;
    top: 70px;
    box-sizing: border-box;
    height: ~"calc(100% - 70px)";
    width: 100%;
}
/*@media screen and (orientation: portrait)*/
.phone .fragment {
    header[role="banner"] {
        position: absolute;
        background-color: @baseColor;
        color: white;
        height: 70px;
        box-sizing: border-box;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;

        .codelink {
            display: none;
            margin-top: 0;
            margin-right: 0;
            position: absolute;
            top: 15px;
            right: 15px;

            .text {
                display: none;
            }
        }

        #contenthost {
            height: 100%;
            width: 100%;
        }
    }
}

.phone .fragment header[role=banner] .mcn-splashcreen {
    progress {
        margin-left: 10px;
        -ms-grid-row-align: center;
    }

    #mcn-splashcreen-loader .mcn-splashcreen-loader-text {
        text-align: center;
    }
}



.fragment {
    -ms-grid-rows: 70px 1fr;
}

.fragment header[role=banner] {
    -ms-grid-columns: 37px 83px 1fr;
}


.fragment header[role=banner] .titlearea {
    -ms-grid-column: 3;
    margin-top: 37px;
}

.fragment header[role=banner] .titlearea .pagetitle {
    width: ~"calc(100% - 20px)";
    font-size: 0.7em;
}

.phone .split {
    display: flex;
    flex-direction: column;
}

.phone section[role=main] {
    overflow: auto;
}

.desc-screen {
    -ms-grid-columns: 40px 300px 40px 1fr 40px;
}

.fragment section[role="main"] {
    padding-left: 20px;
    padding-right: 20px;
}

@media screen and (orientation: portrait) {
    .phone .fragment section[role="main"] {
        -ms-grid-row: 2;
        position: absolute;
        top: 70px;
        box-sizing: border-box;
        height: ~"calc(100% - 70px)";
        width: 100%;
    }
    /*@media screen and (orientation: portrait)*/
    .phone .fragment header[role="banner"] {
        -ms-grid-columns: 15px 83px 1fr;
        position: absolute;
        height: 70px;
        box-sizing: border-box;
        width: 100%;

        .codelink {
            .text {
                display: none;
            }

            &.visible {
                opacity: 1;
            }
        }
    }

    .desc-screen {
        -ms-grid-rows: 5px auto 10px auto;
        -ms-grid-columns: 20px 1fr 20px;

        .bloc-description {
            padding: 20px 20px;
            height: auto;
            margin-top: 20px;
        }

        .bloc-content {
            margin-top: 20px;
            padding-bottom: 40px;
        }
    }
}
